package com.translate.web.param;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IProductImgAddParam;

public class ProductImgAddParam implements IProductImgAddParam {
	// 商品编号
//	@Min(value = ValidateCondtionAndMessage.MIN_ID, message = ValidateCondtionAndMessage.MIN_ID_MSG)
	private int productId;
	// 图片
	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.IMAGE_URL, message = ValidateCondtionAndMessage.IMAGE_URL_MSG)
	private String img;

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img == null ? null : img.trim();
	}
}